package com.example.mydemoproject.service.impl;

import cn.hutool.core.lang.Assert;
import com.example.mydemoproject.util.PdfUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * @author LiuZhiYong
 * @description
 * @date 2022-12-07
 **/
@Slf4j
public class PdfService {

    public static void main(String[] args) {
        String str = "C:\\Users\\liu\\Desktop\\demo\\demo3\\Java核心技术卷2高级特性 Core.Java.Volume.II-Advanced.Features.pdf";
        long start = System.currentTimeMillis();
        PdfUtil.pdf2Image(str, 75);
        log.debug("生成图片总耗时:" + (System.currentTimeMillis() - start) + "毫秒----");
    }

}
